/*******************************************************************************
 jquery.gurafe.components
 Copyright (c) 20010-2011. Vefa Kayaci (gurafe); Open Source Soft, Aksaray - Istanbul
 email: vefakayaci@gmail.com
 site: http://www.gurafe.com

 Licences: BSD 2-Clause
 http://www.opensource.org/licenses/bsd-license.php
 http://www.gnu.org/licenses/gpl.html
 ******************************************************************************/

    (function($) {
	  $.Kyc_Popup = {
    	pack: 'kyc.ui.*',
	    plugin: 'popup.window',
	    author: 'Vefa Kayaci',
	    version: '1.0',
	    defaults:{
              popupType: 'menu',
              popupObj: null
	    },
	    data: {},
	    init: function(options, data){
	      if(data === undefined) data = {};
	      var $Kyc_Popup = this;
	      var Kyc_Popup = this.get(0);
              Kyc_Popup.opt={};
              Kyc_Popup.data={};
	      $.extend(Kyc_Popup.opt, $.Kyc_Popup.defaults, options);
	      $.extend(Kyc_Popup.data, $.Kyc_Popup.data, data);
              var posObj = $(this).position();
              var widthObj = $(this).width();
              var heightObj = $(this).height();
              if(Kyc_Popup.opt.popupType == 'menu'){
                Kyc_Popup.opt.popupObj.css({'left': (posObj.left) + 'px', 'top': (posObj.top) + 'px'});
              }
	    }
	  };
	  $.fn.Kyc_Popup = $.Kyc_Popup.init;
	  //$.fn.gurafe_fillData=$.tLoader.getJSONData;
	})(jQuery);